package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class NewsRecord implements Serializable {
    private String newno;

    private String newname;

    private String newstate;

    private String newimg;

    private String ano;

    private String newdesc;

    private String newdate;

    private String newtime;

    public String getNewdate() {
        return newdate;
    }

    public void setNewdate(String newdate) {
        this.newdate = newdate;
    }

    public String getNewtime() {
        return newtime;
    }

    public void setNewtime(String newtime) {
        this.newtime = newtime;
    }

    private static final long serialVersionUID = 1L;

    public String getNewno() {
        return newno;
    }

    public void setNewno(String newno) {
        this.newno = newno;
    }

    public String getNewname() {
        return newname;
    }

    public void setNewname(String newname) {
        this.newname = newname;
    }

    public String getNewstate() {
        return newstate;
    }

    public void setNewstate(String newstate) {
        this.newstate = newstate;
    }

    public String getNewimg() {
        return newimg;
    }

    public void setNewimg(String newimg) {
        this.newimg = newimg;
    }

    public String getAno() {
        return ano;
    }

    public void setAno(String ano) {
        this.ano = ano;
    }

    public String getNewdesc() {
        return newdesc;
    }

    public void setNewdesc(String newdesc) {
        this.newdesc = newdesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        NewsRecord other = (NewsRecord) that;
        return (this.getNewno() == null ? other.getNewno() == null : this.getNewno().equals(other.getNewno()))
            && (this.getNewname() == null ? other.getNewname() == null : this.getNewname().equals(other.getNewname()))
            && (this.getNewstate() == null ? other.getNewstate() == null : this.getNewstate().equals(other.getNewstate()))
            && (this.getNewimg() == null ? other.getNewimg() == null : this.getNewimg().equals(other.getNewimg()))
            && (this.getAno() == null ? other.getAno() == null : this.getAno().equals(other.getAno()))
            && (this.getNewdesc() == null ? other.getNewdesc() == null : this.getNewdesc().equals(other.getNewdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNewno() == null) ? 0 : getNewno().hashCode());
        result = prime * result + ((getNewname() == null) ? 0 : getNewname().hashCode());
        result = prime * result + ((getNewstate() == null) ? 0 : getNewstate().hashCode());
        result = prime * result + ((getNewimg() == null) ? 0 : getNewimg().hashCode());
        result = prime * result + ((getAno() == null) ? 0 : getAno().hashCode());
        result = prime * result + ((getNewdesc() == null) ? 0 : getNewdesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", newno=").append(newno);
        sb.append(", newname=").append(newname);
        sb.append(", newstate=").append(newstate);
        sb.append(", newimg=").append(newimg);
        sb.append(", ano=").append(ano);
        sb.append(", newdesc=").append(newdesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}